-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLT-3505 small fixes to the isabelle specification #168
Conversation
a66ce09
to
40274af
Compare
81e76e4
to
2f1fcc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks. Just some small corrections, resp. comments
@@ -165,7 +170,7 @@ text \<open>@{thm evalValue_MulValue}\<close> | |||
|
|||
subsubsection \<open>Division\<close> | |||
|
|||
text \<open>Division is a special case because we only evaluate to natural numbers: | |||
text \<open>Division is a special case because we only evaluate to integers: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text \<open>Division is a special case because we only evaluate to integers: | |
text \<open>Integer division is implemented as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(* TODO: This will become clearer after refactoring the semantics as literal programming PLT-3761 *) | ||
text \<open>The @{const giveMoney} function is used in @{const reduceContractStep} to execute a Payment. | ||
It takes as arguments the Party to remove funds from, the Payee to pay to, the amount and token to pay | ||
and the state accounts. It returns the Payment as a Reduce effect and the new state accounts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not necessary to mention that the accounts
are part of the state
here
and the state accounts. It returns the Payment as a Reduce effect and the new state accounts. | |
and the accounts. It returns the Payment as a Reduce effect and the new accounts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1234,5 +1226,5 @@ lemma inputToTransactions_isSingleInput : "isSingleInput (inputsToTransactions s | |||
lemma traceListToSingleInput_isSingleInput2 : "isSingleInput (traceListToSingleInput t)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
traceListToSingleInput_isSingleInput2
is unused in the rest of the code base as well
5694151
to
97fac7d
Compare
TODO: This is marked as a draft until PR 161 has been merged.
This PR adds a changelog starting from the audit and addresses several small findings of the first milestone report.